package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 提成基础数据对象 t_commission_sales_data
 *
 * @author admin
 * @date 2023-10-17
 */
@Data
public class CommissionSalesData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 销售部门
     */
    @Excel(name = "销售部门")
    private String salesDept;

    /**
     * 销售员
     */
    @Excel(name = "销售员")
    private String salesName;

    /**
     * PI号
     */
    @Excel(name = "PI号")
    private String piNo;

    /**
     * 组织编码
     */
    @Excel(name = "组织编码")
    private String orgCode;

    /**
     * 客户编码
     */
    @Excel(name = "客户编码")
    private String customerNo;

    /**
     * 客户提成等级
     */
    @Excel(name = "客户提成等级")
    private String commissionLevel;

    /**
     * 提成比例
     */
    @Excel(name = "提成比例", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal commissionRate;

    /**
     * 销售收入
     */
    @Excel(name = "销售收入", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal totalPriceRmb;

    /**
     * 实际回款金额
     */
    @Excel(name = "实际回款金额", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal writeOffPrice;

    /**
     * 采购成本
     */
    @Excel(name = "采购成本", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal realTotalCostPrice;

    /**
     * 系统运费
     */
    @Excel(name = "系统运费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal systemFreight;

    /**
     * 已收运费
     */
    @Excel(name = "已收运费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal totalFreight;

    /**
     * 实际运费 = 发货运费 + 深港运费
     */
    @Excel(name = "实际运费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal actualFreight;

    /**
     * 发货运费
     */
    @Excel(name = "发货运费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal shipFreight;

    /**
     * 深港运费
     */
    @Excel(name = "深港运费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal shenGangFreight;

    /**
     * 手续费
     */
    @Excel(name = "手续费", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal chargePrice;

    /**
     * 毛利润
     */
    @Excel(name = "毛利润", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal grossProfit;

    /**
     * 逾期单笔提成
     */
    @Excel(name = "逾期单笔提成", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal singleOverdueCommission;

    /**
     * 逾期扣减提成
     */
    @Excel(name = "逾期扣减提成", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal deductOverdueCommission;

    /**
     * 提成年月
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提成年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commissionDate;

    /**
     * 是否锁定
     */
    private Integer status;

    /**
     * 提成扩展ID
     */
    private Long extendId;

}
